import Cookies from 'js-cookie'
// 获取用户userId
const tokenKey = 'User-Id'
// 创建token
export function setToken(token) {
  return Cookies.set(tokenKey, token)
}
// 获取token
export function getToken() {
  return Cookies.get(tokenKey)
}
// 删除token
export function removeToken() {
  return Cookies.remove(tokenKey)
}
